package com.ideaaedi.springcloud.jd.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ideaaedi.springcloud.jd.commonds.entity.PageInfo;
import com.ideaaedi.springcloud.jd.commonds.entity.user.po.SysDataScopePO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.req.SysDataScopeListReqVO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.req.SysDataScopeUpdateReqVO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.resp.SysDataScopeDetailRespVO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.resp.SysDataScopeListRespVO;
import org.springframework.lang.Nullable;

/**
 * <p>
 * 系统-数据操作范围 服务类
 * </p>
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img
 * src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 2021.0.5.B
 */
public interface SysDataScopeService extends IService<SysDataScopePO> {
    
    /**
     * 改
     *
     * @param req 参数
     *
     * @return 修改后的数据详情
     */
    @Nullable
    SysDataScopeDetailRespVO update(SysDataScopeUpdateReqVO req);
    
    /**
     * 查详情
     *
     * @param userId 用户id
     *
     * @return 数据详情
     */
    @Nullable
    SysDataScopeDetailRespVO detailByUserId(Long userId);
    
    /**
     * 查列表
     *
     * @param req 参数
     *
     * @return 数据列表
     */
    PageInfo<SysDataScopeListRespVO> list(SysDataScopeListReqVO req);
}
